<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <body>
            <div style="float: left">
                <div>Pastel - Pedido</div>
                <div>Cliente: <h:inputText value="#{bean.cliente}"/></div>
                <div>Tipo:
                    <h:selectOneRadio value="#{bean.escolhaTipo}">
                        <f:selectItems value="#{bean.tipo}" />
                    </h:selectOneRadio>
                </div>
                <div>
                    Como você conheceu o pastel:
                    <h:selectManyCheckbox value="#{bean.escolhaConheceu}" layout="pageDirection">
                        <f:selectItems value="#{bean.conheceu}" />
                    </h:selectManyCheckbox>
                </div>
                <div>
                    <h:selectOneListbox value="#{bean.escolhaSabor}">
                        <f:selectItems value="#{bean.sabor}" />
                    </h:selectOneListbox>
            </div>
            <div><h:commandButton value="OK"/></div>
        </div>
        <div style="float: left">
            <h:dataTable var="pastel" value="#{bean.listaPastel}" border="" style="border-color: lightgrey">
            <f:facet name="header"><b>Pastéis</b></f:facet>
            <h:column>
                <f:facet name="header"><b>Sabor</b></f:facet>
                #{pastel.sabor}
            </h:column>
            <h:column>
                <f:facet name="header"><b>Preco</b></f:facet>
                #{pastel.preco}
            </h:column>
        </h:dataTable>
        </div>
        </body>
    </h:body>
</html>

